package com.dqp.cslggroup.MenuViewPage;

import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;


import java.util.ArrayList;
import java.util.List;

public class NoteViewAdapter  extends FragmentStatePagerAdapter {
    private final List<Fragment> mFragments = new ArrayList<>();

    public NoteViewAdapter(FragmentManager fm, int week) {
        super(fm, week);
        mFragments.add(new menu_Fragment2());
        mFragments.add(new menu_Fragment1());
        mFragments.add(new menu_Fragment3());
    }

    @Override
    public Fragment getItem(int position) {
        return mFragments.get(position);
    }

    @Override
    public int getCount() {
        return mFragments.size();
    }

    @Override
    public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {

    }
}